integer sideScript = 1234;

integer sideScript2 = 1235;
integer attachment = TRUE;
integer relaychannel = -1812221819;
string cmdname;
key victim;
string gName;
vector gColor;

llRlvSay(string command)
{
    if(attachment==TRUE)
    {
        llOwnerSay("@"+command);
    }
    else
    {
        llSay(relaychannel,cmdname + "," + (string)victim  + "," + "@"+command);
    }
}

default 
{
    state_entry() 
    {
    
    }
    
    link_message(integer sender, integer num, string str, key id)
  	{
  		if(num ==sideScript)
  		{
  			list my_list = llParseString2List(str, ["||"],["###"]);
  			gName =llList2String(my_list,0);
  			gColor =(vector) llList2String(my_list,1);
  			
  			llSetText(gName,gColor,1.0);
  		}
  		if(num ==sideScript2)
  		{
  			if(str=="on")
  			{
  				llRlvSay("showhovertext:"+(string)llGetKey()+"=y");
  			}
  			else if(str=="off")
  			{
  				llRlvSay("showhovertext:"+(string)llGetKey()+"=n");
  			}
  		}
  	}
  	
}


